package com.mvc.framework.constant;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;

public class GlobalConstant {

	public static int systemType = 1;//系统名称0为慢性病旧系统，1为慢病新系统
	public static final String baseidPrefix = "001";//基本信息表编号前缀
	public static final String SESSION_INFO = "sessionInfo";
	public static final String SESSION_PHONE = "sessionPhone";
	public static final String BPS = "bps";
	public static final Integer ENABLE = 0; // 启用
	public static final Integer DISABLE = 1; // 禁用
	public static final SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");// 时间格式
	//血压start
	public static Double SBP = 0.0;//收缩压 单位 mmHg
	public static Double DBP = 0.0;//舒张压  单位 mmHg
	public static final Double SBP_LINE_L = 130.0;//收缩压临界 单位 mmHg
	public static final Double DBP_LINE_L = 85.0;//舒张压临界 单位 mmHg
	public static final Double SBP_LINE_R = 140.0;//收缩压临界 单位 mmHg
	public static final Double DBP_LINE_R = 90.0;//舒张压临界 单位 mmHg
	public static final Double SBP_CRITICAL = 120.0;
	public static final Double DBP_CRITICAL = 80.0;
	//血压end
	
	public static final Integer DEFAULT = 0; // 默认
	public static final Integer NOT_DEFAULT = 1; // 非默认
	
	public static final Map sexlist = new HashMap(){{ put("0", "男");  put("1", "女");} };
	public static final Map statelist = new HashMap(){{ put("0", "启用");  put("1", "停用");} };
	
	public static final SimpleDateFormat SDF = new SimpleDateFormat("yyyy-MM-dd HH:mm");
	public static final SimpleDateFormat SDF2 = new SimpleDateFormat("yyyy-MM-dd");
	
	public static final Date DATE = new Date(); // 获取当前系统时间
	
	//民族
	public static final Map nations = new HashMap() {
		{
			put("2", "蒙古族");
			put("3", "回族");
			put("4", "藏族");
			put("5", "维吾尔族");
			put("6", "苗族");
			put("7", "彝族");
			put("8", "壮族");
			put("9", "布依族");
			put("10", "朝鲜族");
			put("11", "满族");
			put("12", "侗族");
			put("13", "瑶族");
			put("14", "白族");
			put("15", "土家族");
			put("16", "哈尼族");
			put("17", "哈萨克族");
			put("18", "傣族");
			put("19", "黎族");
			put("20", "僳僳族");
			put("21", "佤族");
			put("22", "畲族");
			put("23", "高山族");
			put("24", "拉祜族");
			put("25", "水族");
			put("26", "东乡族");
			put("27", "纳西族");
			put("28", "景颇族");
			put("29", "柯尔克孜族");
			put("30", "土族");
			put("31", "达斡尔族");
			put("32", "仫佬族");
			put("33", "羌族");
			put("34", "布朗族");
			put("35", "撒拉族");
			put("36", "毛南族");
			put("37", "仡佬族");
			put("38", "锡伯族");
			put("39", "阿昌族");
			put("40", "普米族");
			put("41", "塔吉克族");
			put("42", "怒族");
			put("43", "乌孜别克族");
			put("44", "俄罗斯族");
			put("45", "鄂温克族");
			put("46", "德昂族");
			put("47", "保安族");
			put("48", "裕固族");
			put("49", "京族");
			put("50", "塔塔尔族");
			put("51", "独龙族");
			put("52", "鄂伦春族");
			put("53", "赫哲族");
			put("54", "门巴族");
			put("55", "珞巴族");
			put("56", "基诺族");
		}
	};

	//血型
	public static final Map bloodtype = new HashMap() {
		{
			put("1", "A型");
			put("2", "B型");
			put("3", "AB型");
			put("4", "O型");
		}
	};
	//血型样本
	public static final Map rhblood = new HashMap() {
		{
			put("1", "RH阴性");
			put("2", "RH阳性");
		}
	};
	//教育
	public static final Map edu = new HashMap() {
		{
			put("1", "文盲及半文盲");
			put("2", "小学");
			put("3", "初中");
			put("4", "高中/技校/中专");
			put("5", "大学专科及以上");
		}
	};
	//工作
	public static final Map job = new HashMap() {
		{
			put("1", "国家机关、党群组织、企业、事业单位负责人");
			put("2", "专业技术人员");
			put("3", "办事人员和有关人员");
			put("4", "商业、服务业人员");
			put("5", "农、林、牧、渔、水利业生产人员");
			put("6", "生产、运输设备操作人员及有关人员");
			put("7", "军人");
			put("8", "不便分类的其他从业人员");
		}
	};
	
	//医疗费用支付方式
	public static final Map payment = new HashMap() {
		{
			put("1", "城镇职工基本医疗保险");
			put("2", "新型农村合作医疗");
			put("3", "贫困救助");
			put("4", "商业医疗保险");
			put("5", "全公费");
			put("6", "全自费");
		};
	};
	
	//药物过敏史 	
	public static final Map drugallergy = new HashMap(){
		{
			put("2", "青霉素");
			put("3", "磺胺");
			put("4", "链霉素");
		};
	};
	
	//暴露史
	public static final Map exposure = new HashMap(){
		{
			put("2", "化学品");
			put("3", "毒物");
			put("4", "射线");
		};
	};
	 
	//疾病
	public static final Map disease = new HashMap(){
		{
			put("2", "高血压");
			put("3", "糖尿病");
			put("4", "射线");
			put("5", "冠心病");
			put("6", "慢性阻塞性肺疾病");
			put("7", "恶性肿瘤");
			put("8", "脑卒中");
			put("9", "重性精神疾病");
			put("10", "结核病");
			put("11", "肝炎");
			put("12", "其他法定传染病");
			put("13", "职业病");
		};
	};
	
	//残疾
	public static final Map disabilities = new HashMap(){
		{
			put("2", "视力残疾");
			put("3", "听力残疾");
			put("4", "言语残疾");
			put("5", "肢体残疾");
			put("6", "智力残疾");
			put("7", "精神残疾");
		};
	};
	
	//厨房排风设施
	public static final Map exhaust = new HashMap(){
		{
			put("2", "油烟机");
			put("3", "换气扇");
			put("4", "烟囱");
		};
	};
	
	//燃料类型
	public static final Map fuel = new HashMap(){
		{
			put("1", "液化气");
			put("2", "煤");
			put("6", "天燃气");
			put("3", "沼气");
			put("4", "柴火");
		};
	};
	//饮水
	public static final Map water = new HashMap(){
		{
			put("2", "经净化过滤的水");
			put("3", "井水");
			put("4", "河湖水");
			put("5", "塘水");
			put("1", "自来水");
		};
	};
	
	//厕所
	public static final Map wc = new HashMap(){
		{
			put("2", " 一格或二格粪池式");
			put("3", "马桶");
			put("4", "露天粪坑");
			put("5", "简易棚厕");
			put("1", "卫生厕所");
		};
	};
	
	//畜生栏
	public static final Map livestock = new HashMap(){
		{
			put("1", "单设");
			put("2", "室内");
			put("3", "室外");
			put("4", "无");
		};
	};
	
	//体检表症状
	public static final Map symptoms = new HashMap(){
		{
			put("00", "无症状");
			put("02", "头痛");
			put("03", "头晕");
			put("04", "心悸");
			put("05", "胸闷");
			put("06", "胸痛");
			put("07", "慢性咳嗽");
			put("08", "咳痰");
			put("09", "呼吸困难");
			put("10", "多饮");
			put("11", "多尿");
			put("12", "体重下降");
			put("13", "乏力");
			put("14", "关节肿痛");
			put("15", "视力模糊");
			put("16", "手脚麻木");
			put("17", "尿急");
			put("18", "尿痛");
			put("19", "便秘");
			put("20", "腹泻");
			put("21", "恶心呕吐");
			put("22", "眼花");
			put("23", "耳鸣");
			put("24", "乳房胀痛");
			put("01", "其他");
		};
	};
	
}
